<div class="blade-content ng-scope" id="blade-content">
  <div class="blade-inner">
    <div class="inner-block">
      <form name="form" class="form" (submit)="onCreate()" [formGroup]="formGroup" novalidate>
        <div class="blade-static __bottom" *ngIf="currentBlade.isNew">
          <button class="btn" [disabled]="!formGroup.valid">创建</button>
        </div>
        <div class="form-group">
          <label class="form-label">名称</label>
          <div class="form-input">
            <input name="name" formControlName="name" placeholder="输入名称">
          </div>
          <div *ngIf="formErrors.name" class="form-error">
            {{ formErrors.name }}
          </div>
        </div>
        <div class="form-group">
          <label class="form-label">描述</label>
          <div class="form-input">
            <input name="descs" formControlName="descs" placeholder="输入描述">
          </div>
          <div *ngIf="formErrors.descs" class="form-error">
            {{ formErrors.descs }}
          </div>
        </div>

        <div class="form-group">
          <label class="form-label">编码</label>
          <div class="form-input">
            <input name="code" formControlName="code" placeholder="请输入编码">
          </div>
          <div *ngIf="formErrors.code" class="form-error">
            {{ formErrors.code}}
          </div>
        </div>
        <div class="form-group">
          <label class="form-label">组织机构</label>
          <div class="form-input">
            <select name="level" formControlName="level">
              <option [value]="1"><span> 一级系统</span></option>
              <option [value]="2"><span> 二级系统</span></option>
              <option [value]="3"><span> 三级系统</span></option>
            </select>
          </div>
        </div>
        <div>
        </div>
        <div class="columns">
          <div class="form-group">
            <label class="form-label">排序</label>
            <div class="form-input">
              <input name="seq" formControlName="seq" placeholder="输入排序">
            </div>
            <div *ngIf="formErrors.seq" class="form-error">
              {{ formErrors.seq }}
            </div>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
